const data = {
  nodes: [
    {
      id: 'node1',  // id唯一标识
      shape: 'rect',
      x: 40,
      y: 40,
      width: 100,
      height: 40,
      label: 'hello',
      attrs: {
        // body 是选择器名称，选中的是 rect 元素
        body: {
          stroke: '#8f8f8f', //边的颜色
          strokeWidth: 1, // 边线宽
          fill: '#fff', // 背景颜色，跟选择相关，如果是文字fill代表是字体颜色
          rx: 6, // 圆角弧数
          ry: 6, // 圆角弧数
        },
        nodeData: {
          type: 'Rect',
          flowNode: {  
            entityId: '',
            itemId: '',
            flowNodeType: '',
            groupIdentify: '',
            childFlowIdentify: '',  //子流程
            methodName: '',
            methodParams: '',
            methodType: '',
            hasMethodParams: false,
            methodExp: '',
            flowJudges: [],
            // isJudgeNode: '0'
          }
        }
      },
    },
    {
      id: 'node2',
      shape: 'rect',
      x: 160,
      y: 180,
      width: 100,
      height: 40,
      label: 'world',
      attrs: {
        body: {
          stroke: '#8f8f8f',
          strokeWidth: 1,
          fill: '#fff',
          rx: 6,
          ry: 6,
        },
        nodeData: {
          type: 'Rect',
          flowNode: {  
            entityId: '',
            itemId: '',
            flowNodeType: '',
            groupIdentify: '',
            childFlowIdentify: '',  //子流程
            methodName: '',
            methodParams: '',
            methodType: '',
            hasMethodParams: false,
            methodExp: '',
            flowJudges: [],
            // isJudgeNode: '0'
          }
        }
      },
    },
  ],
  edges: [
    {
      shape: 'edge',
      source: 'node1',
      target: 'node2',
      label: 'x6',
      attrs: {
        // line 是选择器名称，选中的边的 path 元素
        line: {
          stroke: '#8f8f8f',
          strokeWidth: 1,
        },
      },
    },
  ],
}
export default data